package com.xln.代码测试;

public class 正则 {
    public static void main(String[] args) {
        String a= "65a" ;
        if (a.matches("\\d+")){
            System.out.printf("是数字");
        }else {
            System.out.printf("不是数字");
        }
    }
}
